@charset "UTF-8";
@import (reference) "../../vendor/bower-asset/bootstrap/less/variables.less";

/*! Copyright (C) 2015-2019 AIZAWA Hina | MIT License */

.cf() {
  *zoom: 1;

  &:before, &:after {
    content: " ";
    display: table;
  }

  &:after {
    clear: both;
  }
}

.trends {
  p {
    font-size: 0.618;
    margin: 0;
  }
    
  ul {
    display: inline-block;
    margin: 0;
    padding: 0 0 0 2em;
    width: 100%;
  }
    
  li {
    display: inline-block !important;
    width: 20% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: initial !important;

    img {
      width: 100% !important;
      height: auto !important;
    }
  }
}

ul.battles {
  .cf;
  display: block;
  list-style-type: none;
  width: 100%;
  margin: 15px 0;
  padding: 0;
  box-sizing: border-box;

  .thumbnail {
    position: relative;
    border: 1px solid #ccc;

    &.thumbnail-nawabari {
      border-color: #ab97e6;
    }

    &.thumbnail-area, &.thumbnail-hoko, &.thumbnail-yagura, &.thumbnail-asari {
      border-color: #e6b9b9;
    }

    img {
      width: 100%;
      height: auto;
    }

    .caption {
      padding: 4px 4px 0;
    }

    .thumblist-time {
      position: absolute;
      right: 4px;
      top: 4px;
      padding: 1px;
      background-color: rgba(255, 255, 255, 0.8);
      border-bottom-left-radius: 3px;
      font-size: 10px;
      color: #333;
      &:hover {
        text-decoration: none;
      }
    }

    .caption-line {
      position: relative;

      .thumblist-user-icon {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 48px;
        height: 48px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 4px;
      }

      .thumblist-user-name {
        display: inline-block;
        padding-left: (48px + 4px);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
      }
    }
  }

  ul {
    padding-inline-start: 20px;
    list-style-type: disc;
  }

  >li {
    display: block;
    list-style-type: none;
    width: 25%;
    float: left;
    padding: 10px;

    @media (max-width: @screen-xs-max) {
      width: 100%;
    }
    @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
      width: 50%;
    }
    @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
      width: (percentage(1/3));
    }
    @media (min-width: @screen-lg-min) {
      width: 25%;
    }
  }

  &.maps {
    margin-bottom: 0;

    li {
      @media (min-width: @screen-lg-min) {
        width: 50%;
      }
    }

    .battle-data {
      text-align: center;
      font-weight: bold;
    }

    .thumbnail {
      margin-bottom: 0;
    }
  }

  &.maps.salmon-schedule {
    li {
      @media (max-width: @screen-xs-max) {
        width: 100%;
      }
      @media (min-width: @screen-sm-min) and (max-width: @screen-sm-max) {
        width: 100%;
      }
      @media (min-width: @screen-md-min) and (max-width: @screen-md-max) {
        width: 100%;
      }
      @media (min-width: @screen-lg-min) {
        width: 100%;
      }
    }
  }

  .time {
    text-align: right;
  }
}

#schedule-spl2 {
  h3 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.4;
  }

  ul.battles {
    margin-bottom: 5px;

    li {
      padding: 5px;
    }

    &.maps {
      .battle-data {
        font-weight: normal;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .thumbnail {
    margin-bottom: 5px;
  }
}

.battle-item-image {
  background-image: none;
  background-color: transparent;
  background-size: cover;
  background-position: center center;
}
